package thinkingJava.chapter05;
import static util.Print.*;
class A{}
public class VarArgs {
	static void printArrays(Object[] arr) {
		for (Object obj : arr) {
			printnb(obj + " ");
		}
		print();
	}
	public static void main(String[] args) {
		printArrays(
				new Object[]{
						new Integer(11), new Float(2.2f), new Double(3.14)
				}
				);
		printArrays(
				new Object[]{"a","ab","abc"}
				);
		printArrays(
				new Object[]{new A(), new A(), new A()}
				);
	}
}
